﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class Admin_car_insurance_ViewCarMakeModel : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session[CE.Global.General.UserId] == null)
        {
            Response.Redirect("~/Admin/AdminSecureLogin.aspx");
        }
    }
    protected void btnSearchCarMake_Click(object sender, EventArgs e)
    {
        
        
    }
    
    protected void grvCarModel_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (grvCarModel.Rows.Count > 0)
        {
            string strCarMakeId = grvCarModel.SelectedDataKey.Values[0].ToString();
            string strCarModelId = grvCarModel.SelectedDataKey.Values[1].ToString();
            Response.Redirect("AddNewCarModel.aspx?CarMakeId=" + strCarMakeId + "&CarModelId=" + strCarModelId);
        }
    }
    protected void btnCreatNewCarMake_Click(object sender, EventArgs e)
    {
        Response.Redirect("AddNewCarMake.aspx");
    }
    protected void btnCreatNewCarModel_Click(object sender, EventArgs e)
    {
        Response.Redirect("AddNewCarModel.aspx");
    }
}
